package com.dl.tt;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
@MapperScan("com.dl.tt.dao")
public class App {

	public static void main(String[] args) {
		// 获取当前spring容器
		ConfigurableApplicationContext context = SpringApplication.run(App.class, args);
		
		// 到容器中查询这个数据comboPooledDataSource 
		
		String[] beans = context.getBeanDefinitionNames();
		
		for(String name:beans) {
			System.out.println(name);
		}
	}

}
